//点开展现大图模块
define("showBigImg",["jquery","bootstrap"],function($) {
	var hasInserted=false;//是否已经插入了模态框
	var modalStr="<div class='modal fade' tabindex='-1' role='dialog' id='bigImgModal' aria-labelledby='bigImgModalLabel' aria-hidden='true'><div class='modal-dialog '><div class='modal-content'><img id='bigImg' src=''/></div></div></div>";

	return function(src){
		if(!hasInserted){
			$("body").append(modalStr);
			$("#bigImg").attr("src",src);
			
			$("#bigImgModal").modal('show');
			hasInserted=true;
		}else{
			$("#bigImg").attr("src",src);
			$("#bigImgModal").modal('show');
		}
		
	};

});